<template>
  <el-container>
    <el-header>
      <div>
        <div class="demo-image">
          <el-image style="width: 60px; height: 60px" :src="url" :fit="fits"></el-image>
          <span>后台管理系统</span>
        </div>
      </div>
      <el-button @click="out">退出登录</el-button>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <!-- -->
        <BkAsider></BkAsider>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import imgUrl from '@/assets/logo.png'
import BkAsider from '@/components/page/bkasider.vue'
export default {
  data() {
    return {
      fits: 'cover',
      url: imgUrl
    }
  },
  components: {
    BkAsider
  },
  methods: {
    out() {
      this.$router.push('/bklogin')
    }
  }
}
</script>

<style lang="less" scoped>
.el-container {
  height: 100%;
  user-select: none;
  .el-header {
    // background-color: #eff2f7;
    background: linear-gradient(180deg, #ffffcc, #fff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    .demo-image {
      height: 60px;
      display: flex;
      span {
        align-self: center;
        margin-left: 10px;
        color: #000;
      }
    }
  }
  .el-aside {
    // background-color: #333744;
    background: linear-gradient(90deg, #ccffff, #ffffcc);
  }
  // .el-main {
  //   // background: linear-gradient(90deg, #ffcccc, #ccffff);
  // }
  .el-main {
    padding: 0;
    overflow-x: hidden;
  }
}
</style>
